// import request from "@/utils/request"



// function getLogin(formData) {
//     return request({
//         method: "POST",
//         // https://apply.hnzyxsbh.comapply/index/login
//         url: "apply/index/login",
//         headers:{
//             "Content-Type": "multipart/form-data"
//         },
//         data: formData
//       })
// }


// export { getLogin }
import request from "@/utils/request"



// 登录
export const login = (user) => {

    return request({
      method: "POST",
      data:user,
      url: "/login",
    });
  };

  export const logins = (user) => {

    return request({
      method: "POST",
      data:user,
      url: "apply/index/renzheng_geren",
    });
  };
  export const getrenzheng = (user) => {

    return request({
      method: "POST",
      data:user,
      url: "/system/companyInfo/getrenzheng",
      // url: "/apply/company/getrenzheng",
    });
  };
  
  export const frzrenzheng = (user) => {

    return request({
      method: "POST",
      data:user,
      url: "/apply/company/frzrenzheng",
    });
  };
  
  export const gzrenzheng = (user) => {

    return request({
      method: "POST",
      data:user,
      url: "/apply/company/gzrenzheng",
    });
  };
    //新公司详情
  export const getinfo = (user) => {
// console.log(user);
    return request({
      method: "POST",
      data:{
        ...user
      },
      url: "/apply/company/getinfo",
    });
  };
      //提交快递
      export const sf_order = (user) => {
        // console.log(user);
            return request({
              method: "POST",
              data:{
                ...user
              },
              url: "/Sf/createSfOrder",
              // url: "/apply/kuaidi/sf_order",
            });
          };

            // 验证码
  export const loginsend = (user) => {

    return request({
      method: "POST",
      data:user,
      url: "/apply/index/loginsend",
    });
  }
    // jiaoyan
export const jiaoyan = (user) => {

  return request({
    method: "get",
    params:user,
    url: "/sms/checkPhoneCode",
    // url: "/apply/index/jiaoyan",
  });
}
// 手机登录 
export const loginbymobile = (user) => {

  return request({
    method: "POST",
    data:user,
    url: "/apply/index/loginbymobile",
  });
}
// 
export const savepwd = (user) => {

  return request({
    method: "POST",
    data:user,
    url: "/apply/index/savepwd",
  });
}